import { getRequest, postRequest, putRequest, postBodyRequest, getNoAuthRequest, postNoAuthRequest } from '@/libs/axios';

export const getStudentOne = (params) => {
    return getRequest('/student/getOne', params)
}
// 导出一个函数，用于获取订单列表
export const getOrderYZFList = (params) => {
    // 发送请求，获取订单列表
    return getRequest('/orders/page', params)
}
// 导出一个名为queryCount的函数，该函数接收一个参数params
export const queryCount = (params) => {
    // 调用getRequest函数，传入/orders/queryCount和params作为参数
    return getRequest('/orders/queryCount', params)
}
export const addStudent = (params) => {
    return postRequest('/student/insert', params)
}
// 导出一个函数editOneOrder，用于编辑一个订单
export const editOneOrder = (params) => {
    // 调用getRequest函数，发送一个GET请求，请求地址为'/orders/update'，请求参数为params
    return getRequest('/orders/update', params)
}
export const addOrEditStudent = (params) => {
    return postRequest('/student/insertOrUpdate', params)
}
// 导出一个函数deleteOneOrder，用于删除一个订单
export const deleteOneOrder = (params) => {
    // 调用deleteOneOrder函数，传入参数params和路径'/orders/delByIds'
    return getRequest('/orders/delByIds', params)
}